﻿using ZeroSum.Attributes;
using ZeroSum.Plugin.Authorization.Datas.Aggregates.RoleAggregate;
using ZeroSumZSA.Core.Aggregates.MenuAggregate;
using ZeroSumZSA.Core.Aggregates.UserAggregate;

namespace ZeroSumZSA.Core.Aggregates.RoleAggregate;

[Entity]
public class Role : RoleBase
{
    /// <summary>
    ///     多对多中间表（用户角色）
    /// </summary>
    public virtual ICollection<User>? Users { get; set; }

    /// <summary>
    ///     多对多中间表（角色-菜单）
    /// </summary>
    public virtual ICollection<Menu>? Menus { get; set; }
}